//保存颜色和位置数据
export default class TempColor {

    private _color: cc.Color = cc.color();

    private pointList: cc.Vec2[] = []

    set color(color: cc.Color) {
        this._color.r = color.r;
        this._color.g = color.g;
        this._color.b = color.b;
        this._color.a = color.a;
    }

    push(pos: cc.Vec2) {
        this.pointList.push(pos)
    }

    get list() {
        return this.pointList;
    }

    get color() {
        return this._color;
    }

}
